﻿using NET6.WebAPI.Attributes;
using NET6.WebAPI.Configs;
using NET6.WebAPI.Entities.Base;
using SqlSugar;
using System.ComponentModel.DataAnnotations.Schema;

namespace NET6.WebAPI.Entities.User
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable(nameof(Sys_User), DatabaseConfig.Test)]
    [Table(nameof(Sys_User))]
    public class Sys_User : BusinessBase
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [IntegrityRate]
        public string PhoneNumber { get; set; }
    }
}
